export function resourceManageColumns() {
    return [
        {
            title: this.$t('module.tenantManage.code'),
            key: 'resourceCode',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('module.tenantManage.name'),
            key: 'resourceName',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('module.tenantManage.requestUrl'),
            key: 'resourceUrl',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('module.tenantManage.orderByCode'),
            key: 'sort',
            ellipsis: true,
            minWidth: 140
        },
        {
            title: this.$t('common.operating'),
            align: 'center',
            fixed: 'right',
            width: 170,
            render: (h, params) => {
                return h('RowTools', {
                    props: {
                        data: [
                            {
                                type: 'icon',
                                icon: 'md-create',
                                text: this.$t('common.edit'),
                                handle: () => {
                                    this.addOrEdit(params.row)
                                }
                            },
                            {
                                type: 'icon',
                                icon: 'ios-trash',
                                text: this.$t('common.delete'),
                                handle: () => {
                                    this.deleteRes(params.row)
                                }
                            }
                        ]
                    }
                })
            }
        }
    ]
}